package com.groupbuying.customer.domain;

import com.groupbuying.customer.utils.DateFormatHelper;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

/**
 * 中奖表
 * 
 * @author gaoruijun
 * @email 18511893135@163.com
 * @date 2019-07-30 10:25:17
 * @des
 */
public class CustomerPrizeDO implements Serializable {
	private static final long serialVersionUID = 1L;
	

	/**
	 * 
	 */
	private BigInteger uuid;
	/**
	 * 获奖来源
	 */
	private String source;
	/**
	 *奖品标识
	 */
	private String identifi;

	private String delflag;

	/**
	 * 中奖时间
	 */
	private Date gmtTime;

	private String gmtTimeStr;

	/**
	 * 中奖类型:摇号-rock-1,转盘-turn-2
	 */
	private String type;

	/**
	 * 会员uuid
	 */
	private String customerId;

	/**
	 * 奖品名称
	 */
	private String prize;

	/**
	 * 微信单公众号标示
	 */
	private String openId;

	/**
	 * 微信昵称
	 */
	private String wxNikeName;

	/**
	 * 用户手机号
	 */
	private String mobile;
	/**
	 * 设置：
	 */
	public void setUuid(BigInteger uuid) {
		this.uuid = uuid;
	}
	/**
	 * 获取：
	 */
	public BigInteger getUuid() {
		return uuid;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getIdentifi() {
		return identifi;
	}

	public void setIdentifi(String identifi) {
		this.identifi = identifi;
	}

	/**
	 * 设置：
	 */
	public void setDelflag(String delflag) {
		this.delflag = delflag;
	}
	/**
	 * 获取：
	 */
	public String getDelflag() {
		return delflag;
	}
	/**
	 * 设置：中奖时间
	 */
	public void setGmtTime(Date gmtTime) {
		this.gmtTime = gmtTime;
	}
	/**
	 * 获取：中奖时间
	 */
	public Date getGmtTime() {

		return gmtTime;
	}
	/**
	 * 设置：中奖类型:摇号-rock-1,转盘-turn-2
	 */
	public void setType(String type) {
		this.type = type;
	}
	/**
	 * 获取：中奖类型:摇号-rock-1,转盘-turn-2
	 */
	public String getType() {
		return type;
	}
	/**
	 * 设置：会员uuid
	 */
	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}
	/**
	 * 获取：会员uuid
	 */
	public String getCustomerId() {
		return customerId;
	}
	/**
	 * 设置：奖品:特等奖-spe-0,一等奖-one-1,二等奖-two-2,三等奖-three-3,谢谢参与-four-4
	 */
	public void setPrize(String prize) {
		this.prize = prize;
	}
	/**
	 * 获取：奖品:特等奖-spe-0,一等奖-one-1,二等奖-two-2,三等奖-three-3,谢谢参与-four-4
	 */
	public String getPrize() {
		return prize;
	}
	/**
	 * 设置：微信单公众号标示
	 */
	public void setOpenId(String openId) {
		this.openId = openId;
	}
	/**
	 * 获取：微信单公众号标示
	 */
	public String getOpenId() {
		return openId;
	}
	/**
	 * 设置：微信昵称
	 */
	public void setWxNikeName(String wxNikeName) {
		this.wxNikeName = wxNikeName;
	}
	/**
	 * 获取：微信昵称
	 */
	public String getWxNikeName() {
		return wxNikeName;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getGmtTimeStr() {
		return this.getGmtTime()==null?"": DateFormatHelper.format(this.getGmtTime(),"yyyy-MM-dd HH:mm:ss");
	}

	public void setGmtTimeStr(String gmtTimeStr) {
		this.gmtTimeStr = gmtTimeStr;
	}
	@Override
    public String toString() {
        return "CustomerPrizeDO{" +
									                    "uuid=" + uuid +
					                										",delflag=" + delflag +
					                										",gmtTime=" + gmtTime +
					                										",type=" + type +
					                										",customerId=" + customerId +
					                										",prize=" + prize +
					                										",openId=" + openId +
					                										",wxNikeName=" + wxNikeName +
					                				"}";
    }
}
